package main

import "fmt"

func main() {
	a := [...]float64{1.1, 1.4, 1.9}
	for i := 0; i < len(a); i++ {
		fmt.Println(a[i])
	}
	sum := float64(0)
	for i, v := range a {
		fmt.Println(i, v)
		sum += v
	}
	fmt.Println(sum)
}
